package com.zxx.yuanze.lod;

/**
 * @author zxx on 2020/12/8
 */
public class AAATest {

    public static void main(String[] args) {
        int a = 3;
        if (a == 1) {
            System.out.println("qqq");
        } else if (a == 2) {
            System.out.println("gee");
        } else if (a == 3) {
            System.out.println("hello");
        }

        //占内存但是速度快不用每次判断，低于5个包括default用if，否则用switch
        switch (a) {
            case 1:
                System.out.println("11");
                break;
            case 2:
                System.out.println("22");
                break;
            case 3:
                System.out.println("33");
                break;
        }
    }

}
